#!/bin/bash

source $DRAW_INI
source $DRAW_CFG

java -Xmx2g -jar $GENOMICS_JAR/CollectInsertSizeMetrics.jar \
  VALIDATION_STRINGENCY=SILENT \
  INPUT=${1} \
  OUTPUT=Metric_file \
  TMP_DIR=$TMPDIR \
  HISTOGRAM_FILE=${2} 

EXITSTATUS=$?


#if [ ! -s "${2}" ]; then exit 100;fi;   


exit $EXITSTATUS
